//
// TPSLod.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public final class TPSLod {
  public final static TPSLod PSLod1n2 = new TPSLod("PSLod1n2", nel3dJNI.PSLod1n2_get());
  public final static TPSLod PSLod1 = new TPSLod("PSLod1");
  public final static TPSLod PSLod2 = new TPSLod("PSLod2");

  public final int swigValue() {
    return swigValue;
  }

  public String toString() {
    return swigName;
  }

  public static TPSLod swigToEnum(int swigValue) {
    if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
      return swigValues[swigValue];
    for (int i = 0; i < swigValues.length; i++)
      if (swigValues[i].swigValue == swigValue)
        return swigValues[i];
    throw new IllegalArgumentException("No enum " + TPSLod.class + " with value " + swigValue);
  }

  private TPSLod(String swigName) {
    this.swigName = swigName;
    this.swigValue = swigNext++;
  }

  private TPSLod(String swigName, int swigValue) {
    this.swigName = swigName;
    this.swigValue = swigValue;
    swigNext = swigValue+1;
  }

  private TPSLod(String swigName, TPSLod swigEnum) {
    this.swigName = swigName;
    this.swigValue = swigEnum.swigValue;
    swigNext = this.swigValue+1;
  }

  private static TPSLod[] swigValues = { PSLod1n2, PSLod1, PSLod2 };
  private static int swigNext = 0;
  private final int swigValue;
  private final String swigName;
}

